<?php
declare(strict_types=1);
namespace App\Source;
use App\Controller;

// hook controller_one_search_campaign_group_use.php

/**
 * @title   导购素材
 * @auth    true
 * @login   true
 * @menu    true
 * @component  vlist/index.vue
 * @icon    ../../public/img/onebpSearch38.svg
 * @active  true
 * @affix   false
 * @rank    123
 */
class Guide extends Controller
{
    // hook controller_one_search_campaign_group_public_start.php



    // hook controller_one_search_campaign_group_public_end.php

    /**
     * @title  下发配置
     * @rank    0
     */
    public function action_Conf_PUT()
    {
        // hook controller_one_search_campaign_group_conf_start.php
        $conf=['pageSize'=>10000,'remoteSort'=>0,'remoteFilter'=>0,'remoteSummary'=>0,'hidePagination'=>1,'hideRefresh'=>0,'hideDo'=>0,'add'=>0,'start'=>0,'stop'=>0,'delete'=>0,'import'=>0,'export'=>0,'pageSizes'=>[10,20,25,50,100,500,1000,10000],'TreeData'=>0,'Local'=>1,'enable'=>0,'disable'=>0,'chartRange'=>0,'copy'=>0];
        $Columns = [
            ['table'=>'OneCampaignGroup','prop'=>'bizCode','label'=>'','hidden'=>1,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1],
            ['table'=>'OneCampaignGroup','prop'=>'itemId','label'=>'商品ID','hidden'=>1,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1],
            ['table'=>'OneCampaignGroup','prop'=>'shortTitle','label'=>'短标题','hidden'=>0,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1,'editable'=>1],
            ['table'=>'OneCampaignGroup','prop'=>'reasons','label'=>'卖点','hidden'=>0,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1,'editable'=>1,'type'=>'image'],
            ['table'=>'OneCampaignGroup','prop'=>'ooWhite','label'=>'商品白底图','hidden'=>0,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1,'editable'=>1,'type'=>'image'],
            ['table'=>'OneCampaignGroup','prop'=>'tfWhite','label'=>'纯净底图','hidden'=>0,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1,'editable'=>1,'type'=>'image'],
            ['table'=>'OneCampaignGroup','prop'=>'ooScene','label'=>'方版场景图','hidden'=>0,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1,'editable'=>1,'type'=>'image'],
            ['table'=>'OneCampaignGroup','prop'=>'tfScene','label'=>'3:4场景图','hidden'=>0,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1,'editable'=>1,'type'=>'image'],
            ['table'=>'OneCampaignGroup','prop'=>'sceneVideo2','label'=>'视频1','hidden'=>0,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1,'editable'=>1,'type'=>'video'],
            ['table'=>'OneCampaignGroup','prop'=>'sceneVideo3','label'=>'视频2','hidden'=>0,'search'=>0,'add'=>0,'field'=>0,'sortable'=>1,'editable'=>1,'type'=>'video'],
        ];
        $Filter = [];
        $Tools = [];

        // hook controller_one_search_campaign_group_conf_end.php
        $this->response('0000', ['Conf' =>$conf, 'Filter' => $Filter, 'Tools' =>$Tools, 'Columns' => $Columns]);
    }

    // hook controller_one_search_campaign_group_end.php
}

?>